using System;
using System.Collections.Generic;
using System.Configuration;
using System.Text;

namespace Sedna.Core.AppConfig
{
    public class ConfigurationHolder
    {
        public static string GetParameterValueByName(string name)
        {
            return ConfigurationManager.AppSettings[name];
        }
        
        public static int GetIntParameterValue(string name)
        {
            return Int32.Parse(GetParameterValueByName(name));
        }
        
        public static long GetLongParameterValue(string name)
        {
            return Int64.Parse(GetParameterValueByName(name));
        }
        
        public static bool GetBooleanParameterValue(string name)
        {
            return Boolean.Parse(GetParameterValueByName(name));
        }
    }
}
